package com.ptswitch.material.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.impl.EMailAddressDao;
import com.ptswitch.material.model.common.EMailAddress;
import com.ptswitch.material.service.EMailAddressService;

@Service
public class EMailAddressServiceImpl implements EMailAddressService {
    @Resource
    protected EMailAddressDao emailAddressDao;

    @Override
    public List<EMailAddress> findAll() {
        return emailAddressDao.findAll();
    }

    @Override
    public void save(EMailAddress model) {
        emailAddressDao.save(model);
    }

    @Override
    public void delete(String id) {
        emailAddressDao.delete(id);
    }
}
